package com.mindpointeye.websockt

import java.nio.ByteBuffer

/**
 * 类简要描述
 * <p/>
 * <p>
 * 类详细描述
 * </p>
 *
 * @author zhaozeyang
 * @date 2/2/21
 */
interface IWebSocketListener {
  fun onConnectSuccess()
  fun onConnectFailed()
  fun onClose()
  fun onOpen()
  fun onMessage(vararg text: String?)
  fun onMessage(
    type: Int,
    vararg text: String?
  )

  fun onMessage(buffer: ByteBuffer)
  fun onHeartBeatCheck(bytes:ByteArray)
}